import { RouteRecordRaw } from 'vue-router'

// 导出创作中心相关组件
import CreateCenter from './CreateCenter.vue'
import CreateContentManage from './CreateContentManage.vue'
import CreateCommentManage from './CreateCommentManage.vue'
import CreateDanmuManage from './CreateDanmuManage.vue'

// 导出创作中心路由配置
const CreateRoutes: RouteRecordRaw[] = [
  {
    path: '',
    name: 'CreateDashboard',
    component: () => import('./CreateCenter.vue'),
  },
  {
    path: 'content',
    name: 'CreateContentManage',
    component: () => import('./CreateContentManage.vue'),
  },
  {
    path: 'comment',
    name: 'CreateCommentManage',
    component: () => import('./CreateCommentManage.vue'),
  },
  {
    path: 'upload',
    name: 'UploadVideo',
    component: () => import('./UploadComponent.vue'),
  },
  {
    path: 'upload/detail',
    name: 'UploadDetail',
    component: () => import('./UploadDetail.vue'),
  },
]

export {
  CreateCenter,
  CreateContentManage,
  CreateCommentManage,
  CreateDanmuManage,
}

export default CreateRoutes
